/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: Cpuhp related header
 * Author: Huawei OS Kernel Lab
 * Create: Thu Jun 30 16:34:03 2022
 */

#ifndef __LDK_CPUHP_H__
#define __LDK_CPUHP_H__

#ifdef CONFIG_LIBLINUX_HOTPLUG
void save_boot_affinity(unsigned long *boot_affinity, unsigned int bind_cpu);
void restore_boot_affinity(unsigned long boot_affinity);
#else
static inline void save_boot_affinity(unsigned long *boot_affinity, unsigned int bind_cpu) {};
static void restore_boot_affinity(unsigned long boot_affinity) {};
#endif

#endif
